const Http = require("./Http");

class BookHttp extends Http {
    //获取banner
    static getBookBannerHttp() {
        return this.request(":4000/api/banner")
    }
    //获取文章列表
    static getBookListHttp() {
        return this.request(":4000/api/article")
    }
    //获取文章详情
    static getBookDetailHttp(id) {
        return this.request(`:4000/api/articleDetail?id=${id}`)
    }
    
}

module.exports = BookHttp;